<h1>Listing announcements</h1>

<table>
  <tr>
    <th>Content</th>
  </tr>

<% for announcement in @announcements %>
  <tr>
    <td><%=h announcement.content %></td>
    <td><%= link_to 'Show', announcement %></td>
    <td><%= link_to 'Edit', edit_announcement_path(announcement) %></td>
    <td><%= link_to 'Destroy', announcement, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New announcement', new_announcement_path %>
